package com.xyh.transaction.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExportExcelUserVo {

    @ExcelProperty(value = "用户名")
    private String username;

    @ColumnWidth(value = 20)
    @ExcelProperty(value = "头像")
    private byte[] avatar;

    @ExcelProperty("年龄")
    private Integer age;

    @ExcelProperty(value = "性别（男/女）",converter = GenderConverter.class)
    private Integer gender;

    @ColumnWidth(value = 20)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelProperty("身份证号")
    private String idCard;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty(value = "状态（启用/禁用）",converter = StatusConverter.class)
    private Integer status;
}
